package com.carrental.rental.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 车辆服务Feign客户端
 */
@FeignClient(name = "car-vehicle")
public interface VehicleClient {

    /**
     * 更新车辆租赁次数
     *
     * @param vehicleId 车辆ID
     * @return 是否成功
     */
    @PostMapping("/vehicle/internal/updateRentalCount")
    boolean updateVehicleRentalCount(@RequestParam("vehicleId") Long vehicleId);
} 